function result=WaveletPredication(x,y)
yn = textread(y);
xite = textread(x);
P=yn(:,1:7);
T=[yn(:,10)+yn(:,11),yn(:,9:11)];
Pt=xite(:,1:7);
NodeNum=40;
TypeNum=4;
TF1='TEMPLATE_TRANSFER';
TF2='purelin';
goalssum=mse(10);winer=10;goalsa=1;goalsb=1;result=0;
while(sum(goalssum) ~= sum(goalsa)+sum(goalsb) || sum(winer) ~= sum(goalsa)-sum(goalsb) )
net=newff(minmax(P'),[NodeNum,TypeNum],{TF1,TF2},'trainlm');
net.trainParam.epochs = 50;
net.trainParam.goal =1e-1;
net.trainParam.time = inf;
net=train(net,P',T');
an=sim(net,Pt');
result=fix(an');
goalssum=result(:,1);
winer=result(:,2);
goalsa=result(:,3);
goalsb=result(:,4);
end


